package com.benson.callback;

public class ServerProxy {

	private CallBack callBack;
	
	public void request(String target,Object[] params,CallBack callBack){
		
		this.callBack = callBack;
	}
	
	public void back(boolean success,Object results){
		if(success){
			callBack.success(results);
		}else{
			callBack.fialled();
		}
	}
}
